package Q507

/**
 * 完美数
 * @author 23737
 * @date 2022.5.12
 */
fun main() {

}

class Solution {
    fun checkPerfectNumber(num: Int): Boolean {
        when (num) {
            6, 28, 496, 8128, 33550336 -> return true
        }
        return false
    }
}